﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class shoping_sussecfull : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            try
            {
                if (Request.QueryString["Id"] != null && Request.QueryString["number"] != null && Request.QueryString["quantity"] != null && Request.QueryString["total"] != null)
                {
                    this.litCName.Text = Session["user"].ToString().Split(',')[1];
                    this.orderid.Text = Convert.ToInt32(Request.QueryString["id"].ToString()).ToString("");
                    this.oquantity.Text = Convert.ToInt32(Request.QueryString["quantity"].ToString()).ToString("");
                    this.ototal.Text = Convert.ToDecimal(Request.QueryString["total"].ToString()).ToString("n");
                    this.ocount.Text = Convert.ToInt32(Request.QueryString["number"].ToString()).ToString("");
                }
                else
                {
                    Response.Redirect("http://localhost:2011/didong/Shoping/emptycart.html");
                }
            }
            catch (Exception)
            {
            }
           
        }
    }
}
